<form id="form2" method="post" action="{:U('portal/Page/doEditCategory','channelId='.$channelId)}">
  <table width="97%" border="0" cellpadding="0" cellspacing="3" align="left" class="mt10">
    <tr>
      <td width="90" align="right">分层名称：</td>
      <td height="30" align="left"><input class="in_put" style="width:200px" name="title2" type="text" id="title2" maxlength="30" value="{$cate.title}"/>
        <input type="hidden" name="channelId" id="channelId" value="{$channelId}" />
		<input type="hidden" name="id" id="id" value="{$cate.id}" />
        <input type="button" class="btn_sea" value="修改" onclick="checkForm2()"/></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
function checkForm2(){
	var title = $("#title2").val();
	if(title==''){
	    alert('分层名称不能为空');
		return false;
	}
	$("#form2").submit();
}
</script>
